package design.pattern.builder.demo1;

/**
 * 指挥者类
 * @author AtoVio, Winter Yuan
 */
public class Director {

    private final Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    // 组装自行车
    public Bike construct() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.getBike();
    }
}
